<?php

/**
 * 首页
 * User: tsang
 * Date: 2017/9/14
 * Time: 20:11
 */

namespace app\websys\Controller;
use Doctrine\Common\Cache\MemcacheCache;
use think\Session;
use think\cache\driver\Redis;
class Index extends Common
{
	
	/*
	*	构造函数
	*/
	function __construct(){
		parent::__construct();
	}

	/*
	*	后台主界面
	*/
    public function index()
    {

        $count = db("news")->count();
        $this->assign("news_count",$count);
        return $this->fetch();
    }

	
	
}